/*
 * AtributosDialog.java
 *
 * Created on 8 de enero de 2008, 20:16
 */

package dpoo.gui;

/**
 *
 * @author  david
 */
public class AtributoDialog extends javax.swing.JDialog {
    
    /** Creates new form AtributosDialog */
    public AtributoDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        visiGroup = new javax.swing.ButtonGroup();
        modGroup = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        claseNombre = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        modFinal = new javax.swing.JCheckBox();
        modEstatico = new javax.swing.JCheckBox();
        jLabel3 = new javax.swing.JLabel();
        visiPaquete = new javax.swing.JRadioButton();
        visiPrivada = new javax.swing.JRadioButton();
        visiPublica = new javax.swing.JRadioButton();
        visiProtegido = new javax.swing.JRadioButton();
        jLabel2 = new javax.swing.JLabel();
        tipo = new javax.swing.JComboBox();
        cancelar = new javax.swing.JButton();
        guardar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setLocationByPlatform(true);
        setMinimumSize(new java.awt.Dimension(457, 216));

        jLabel1.setFont(new java.awt.Font("Dialog", 1, 12));
        jLabel1.setText("Nombre:");

        jLabel4.setFont(new java.awt.Font("Dialog", 1, 12));
        jLabel4.setText("Modificadores:");

        modGroup.add(modFinal);
        modFinal.setText("Final");

        modGroup.add(modEstatico);
        modEstatico.setText("Estático");

        jLabel3.setFont(new java.awt.Font("Dialog", 1, 12));
        jLabel3.setText("Visibilidad:");

        visiGroup.add(visiPaquete);
        visiPaquete.setSelected(true);
        visiPaquete.setText("Paquete");
        visiPaquete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                visiPaqueteActionPerformed(evt);
            }
        });

        visiGroup.add(visiPrivada);
        visiPrivada.setText("Privada");

        visiGroup.add(visiPublica);
        visiPublica.setText("Pública");

        visiGroup.add(visiProtegido);
        visiProtegido.setText("Protegido");

        jLabel2.setFont(new java.awt.Font("Dialog", 1, 12));
        jLabel2.setText("Tipo:");

        cancelar.setText("Cancelar");

        guardar.setText("Guardar");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(claseNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 369, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(tipo, 0, 390, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(visiPaquete)
                            .addComponent(visiPrivada))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(visiPublica)
                            .addComponent(visiProtegido)))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(modEstatico)
                            .addComponent(modFinal)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(guardar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cancelar)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(claseNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(tipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(visiPaquete)
                    .addComponent(visiProtegido))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(visiPrivada)
                    .addComponent(visiPublica))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(modFinal))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(modEstatico)
                .addGap(8, 8, 8)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cancelar)
                    .addComponent(guardar))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void visiPaqueteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_visiPaqueteActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_visiPaqueteActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                AtributoDialog dialog = new AtributoDialog(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton cancelar;
    private javax.swing.JTextField claseNombre;
    private javax.swing.JButton guardar;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JCheckBox modEstatico;
    private javax.swing.JCheckBox modFinal;
    private javax.swing.ButtonGroup modGroup;
    private javax.swing.JComboBox tipo;
    private javax.swing.ButtonGroup visiGroup;
    private javax.swing.JRadioButton visiPaquete;
    private javax.swing.JRadioButton visiPrivada;
    private javax.swing.JRadioButton visiProtegido;
    private javax.swing.JRadioButton visiPublica;
    // End of variables declaration//GEN-END:variables
    
}
